<?php

	class Notification implements iModel {
		
		public $notificationId;
		public $eventId;
		public $eventItemId;
		public $title;
		public $description;
		public $notificationDate;
		public $notificationUser;
		
		public function __construct() {
			$this->setNotificationUser(new EventUser());
		}
		
		public function getNotificationId() {
			 return $this->notificationId; 
		} 
		
		public function getEventId() {
			 return $this->eventId; 
		} 
		
		public function getEventItemId() {
			 return $this->eventItemId; 
		} 
		
		public function getTitle() {
			 return $this->title; 
		} 
		
		public function getDescription() {
			 return $this->description; 
		} 
		
		public function getNotificationDate() {
			 return $this->notificationDate; 
		} 
		
		public function getNotificationUser() {
			 return $this->notificationUser; 
		} 
		
		public function setNotificationId($notificationId) {
			 $this->notificationId = $notificationId;
		} 
		
		public function setEventId($eventId) {
			 $this->eventId = $eventId; 
		} 
		
		public function setEventItemId($eventItemId) {
			 $this->eventItemId = $eventItemId; 
		} 
		
		public function setTitle($title) {
			 $this->title = $title; 
		} 
		
		public function setDescription($description) {
			 $this->description = $description; 
		} 
		
		public function setNotificationDate($notificationDate) {
			 $this->notificationDate = $notificationDate; 
		} 
		
		public function setNotificationUser($notificationUser) {
			 $this->notificationUser = $notificationUser; 
		} 
		
		public function JSONToObject($notificationJSON) {
			$this->setNotificationId($notificationJSON->notificationId);
			$this->setEventId($notificationJSON->eventId);
			$this->setEventItemId($notificationJSON->eventItemId);
			$this->setTitle($notificationJSON->title);		
			$this->setDescription($notificationJSON->description);
			$this->setNotificationDate($notificationJSON->notificationDate);
			$notificationUser = new EventUser();
			$notificationUser->JSONToObject($notificationJSON->notificationUser);
			$this->setNotificationUser($notificationUser);
		}
		
	}
?>